/* eslint-disable import/prefer-default-export,import/newline-after-import */
import Router from 'vue-router';
import loginReg from '../pages/loginReg';
import test from '../pages/test';
import notFound from '../pages/notFound';
import login from '../components/login';
import register from '../components/register';
const routes = [
  { path: '/', redirect: '/auth' },
  {
    path: '/auth',
    component: loginReg,
    redirect: '/auth/login',
    children: [
      { path: 'login', component: login },
      { path: 'register', component: register },
    ],
  }, //  路由记录
  { path: '/test', component: test },
  { path: '*', component: notFound },
];
export const router = new Router({ //  routes
  routes,
});

